﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using System.Data;
using CRM.Entity.Extra;
using CRM.Entity.Page;
using CRM.Entity;

namespace CRM.Index.IProvider
{
    [ServiceContract]
    public partial interface IProviderService
    {
        [OperationContract]
        bool UserInfo_Insert(UserInfo userInfo);

        [OperationContract]
        bool UserInfo_Update(UserInfo userInfo);

        [OperationContract]
        bool UserInfo_Delete(UserInfo userInfo);

        [OperationContract]
        UserInfo UserInfo_Single(Int64 id);

        [OperationContract]
        UserInfo UserInfo_SingleByName(string userName);
        
        [OperationContract]
        UserInfoPage UserInfo_Top(int top);

        [OperationContract]
        UserInfoPage UserInfo_Page(PageInfo info);
        
        [OperationContract]
        UserInfoExtraPage UserInfoExtra_Page(PageInfo info);
    }
}
